Page({
  onLoad(e) {
    getApp().checkLogin()
    this.getDetail(e.id)
  },
  // 获取详情
  async getDetail(id) {
    let { data } = await wx.http({
      url: '/room/' + id
    })
    this.setData({
      ...data
    })
  },

  // 去编辑(真实页面：去新增form表单页面)
  editHouse(e) {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id=' + e.mark.id,
    })
  },
})
